package controler;
import java.sql.ResultSet;
import java.sql.SQLException;

import model.*;

public class test 
{
	public static void main(String[] args) throws SQLException 
	{
		bddConnection une_connection = new bddConnection("localhost", "transat", "root", "");
		
		ResultSet toto = une_connection.doSql("SELECT * FROM bateau");
		while (toto.next()) {
			String id = toto.getString("nom");
			System.out.println(id);
		}		
	}
}
